<?php
/**
 * HTML Twibs
 * @author	Jeremy Lindblom
 */

namespace html;

function attr(array$a){\asort($a);$h='';foreach($a as$k=>$v)$h.=" $k=\"$v\"";return$h;}
function tag($t='span',$c='',$a=array(),$b='',$z=''){return"$b<$t".attr($a).($c===0?' />':">$c</$t>").$z;}
function link($u='',$c='',$a=array(),$b='',$z=''){$a['href']=$u=\url\site($u);return tag('a',$c?:$u,$a,$b,$z);}